package cn.iocoder.yudao.module.jikong.controller.app.user.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserGetRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26228")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "0个人，1机构", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "0个人，1机构", converter = DictConvert.class)
    @DictFormat("jk_user_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer userType;

    @Schema(description = "用户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("用户名称")
    private String name;

    @Schema(description = "手机号码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("手机号码")
    private String mobile;

    @Schema(description = "用户通讯地址")
    @ExcelProperty("用户通讯地址")
    private String userAddress;

    @Schema(description = "机构名称", example = "赵六")
    @ExcelProperty("机构名称")
    private String complainName;

    @Schema(description = "机构代码")
    @ExcelProperty("机构代码")
    private String complainCode;

    @Schema(description = "机构证照", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("机构证照")
    private String complainPic;

    @Schema(description = "机构通讯地址")
    @ExcelProperty("机构通讯地址")
    private String complainAddress;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "实名姓名", example = "芋艿")
    @ExcelProperty("实名姓名")
    private String realName;

    @Schema(description = "身份证号码")
    @ExcelProperty("身份证号码")
    private String realNo;

    @Schema(description = "身份证人像面")
    @ExcelProperty("身份证人像面")
    private String realPicPerson;

    @Schema(description = "身份证国徽面")
    @ExcelProperty("身份证国徽面")
    private String realPicBack;

    @Schema(description = "身份证手持")
    @ExcelProperty("身份证手持")
    private String realPicHolding;

    @Schema(description = "0未启用 1启用", example = "2")
    @ExcelProperty(value = "0未启用 1启用", converter = DictConvert.class)
    @DictFormat("open_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "0否，1是", example = "2")
    @ExcelProperty(value = "0否，1是", converter = DictConvert.class)
    @DictFormat("backlist_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer blacklistStatus;

    @Schema(description = "审核状态 0未认证 1审核中 2已认证 3已拒绝", example = "1")
    @ExcelProperty(value = "审核状态 0未认证 1审核中 2已认证 3已拒绝", converter = DictConvert.class)
    @DictFormat("review_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer reviewStatus;

}
